/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: Shentong
 * @Date: 2021-01-24 14:51:00
 * @LastEditors: Shentong
 * @LastEditTime: 2021-01-24 17:53:30
 */
import React from 'react'
import { View } from '@tarojs/components'

import styles from './index.module.scss'

interface Props {
  hasTabbar?: boolean;
  paddingBt?: number
}

export default (props:Props) => {
  const { hasTabbar = true, paddingBt = 0 } = props
  return (
    <View
      className={`${styles.box} ${!hasTabbar && styles.no_tabbar}`}
      style={paddingBt ? {paddingBottom: `calc(${paddingBt +30 }rpx + env(safe-area-inset-bottom))`} : {}}
    >
      ———— 我是有底线的哟 ————
    </View>
  )
}
